<select name="CODIGO_FUNCAO">
	<? foreach ($this->funcoes as $funcao) { ?>
		<option value="<?= $funcao->CODIGO?>" <?= ($funcao->CODIGO == $this->selecionado) ? "selected='selected'" :""?>>
				<?= $funcao->NOME?>
			</option>	
 	<? }?>
 </select>